package com.mars.basic.config;


import com.mars.common.config.WebAppBaseConfigurer;
import com.mars.common.web.ExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;


/**
 * title: WebAppConfigurer.java
 *
 * @author rplees
 * @version 1.0
 * @email rplees.i.ly@gmail.com
 * @created Jan 26, 2018 3:56:53 PM
 */
@Configuration
public class WebAppConfigurer extends WebAppBaseConfigurer {

    @Bean
    public GlobalInterceptor httpTraceLogFilter() {
        return new GlobalInterceptor();
    }

    @Bean
    public ExceptionHandler ExceptionHandler() {
        return new ExceptionHandler();
    }
}
